//
//  HomePageViewController.m
//  001LiycSinaWeiBo
//
//  Created by 李伟国 on 15/9/8.
//  Copyright (c) 2015年 李伟国. All rights reserved.
//

#import "HomePageViewController.h"
#import "SendWeiBoViewController.h"
@interface HomePageViewController ()

@end

@implementation HomePageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.navigationItem.title = @"主页";
    
    
    UIBarButtonItem *sendweiBoBnt = [[UIBarButtonItem alloc] initWithTitle:@"发微博" style:UIBarButtonItemStylePlain target:self action:@selector(sendWeiBo:)];
    self.navigationItem.rightBarButtonItem = sendweiBoBnt;

}

- (void)sendWeiBo:(id)sender {

    SendWeiBoViewController *sendWeiBoVC = [[SendWeiBoViewController alloc] initWithNibName:@"SendWeiBoViewController" bundle:nil];
    [self.navigationController pushViewController:sendWeiBoVC animated:YES];

}



@end





